home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Objects / protos / stringobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-10  |  4.0 KB  |  60 lines

  1. static void string_dealloc ( PyObject *op );
  2. static int string_print ( PyStringObject *op , FILE *fp , int flags );
  3. static PyObject *string_repr ( PyStringObject *op );
  4. static int string_length ( PyStringObject *a );
  5. static PyObject *string_concat ( PyStringObject *a , PyObject *bb );
  6. static PyObject *string_repeat ( PyStringObject *a , int n );
  7. static PyObject *string_slice ( PyStringObject *a , int i , int j );
  8. static PyObject *string_item ( PyStringObject *a , int i );
  9. static int string_compare ( PyStringObject *a , PyStringObject *b );
  10. static long string_hash ( PyStringObject *a );
  11. static int string_buffer_getreadbuf ( PyStringObject *self , int index , const void **ptr );
  12. static int string_buffer_getwritebuf ( PyStringObject *self , int index , const void **ptr );
  13. static int string_buffer_getsegcount ( PyStringObject *self , int *lenp );
  14. static int string_buffer_getcharbuf ( PyStringObject *self , int index , const char **ptr );
  15. static PyObject *getnextarg ( PyObject *args , int arglen , int *p_argidx );
  16. static int formatfloat ( char *buf , int flags , int prec , int type , PyObject *v );
  17. static int formatint ( char *buf , int flags , int prec , int type , PyObject *v );
  18. static int formatchar ( char *buf , PyObject *v );
  19.  
  20. static int string_contains ( PyObject *a , PyObject *el );
  21.  
  22. static PyObject *split_whitespace ( char *s , int len , int maxsplit );
  23. static PyObject *string_split ( PyStringObject *self , PyObject *args );
  24. static PyObject *string_join ( PyStringObject *self , PyObject *args );
  25. static long string_find_internal ( PyStringObject *self , PyObject *args , int dir );
  26. static PyObject *string_find ( PyStringObject *self , PyObject *args );
  27. static PyObject *string_index ( PyStringObject *self , PyObject *args );
  28. static PyObject *string_rfind ( PyStringObject *self , PyObject *args );
  29. static PyObject *string_rindex ( PyStringObject *self , PyObject *args );
  30. static PyObject *do_strip ( PyStringObject *self , PyObject *args , int striptype );
  31. static PyObject *string_strip ( PyStringObject *self , PyObject *args );
  32. static PyObject *string_lstrip ( PyStringObject *self , PyObject *args );
  33. static PyObject *string_rstrip ( PyStringObject *self , PyObject *args );
  34. static PyObject *string_lower ( PyStringObject *self , PyObject *args );
  35. static PyObject *string_upper ( PyStringObject *self , PyObject *args );
  36. static PyObject *string_title ( PyUnicodeObject *self , PyObject *args );
  37. static PyObject *string_capitalize ( PyStringObject *self , PyObject *args );
  38. static PyObject *string_count ( PyStringObject *self , PyObject *args );
  39. static PyObject *string_swapcase ( PyStringObject *self , PyObject *args );
  40. static PyObject *string_translate ( PyStringObject *self , PyObject *args );
  41. static PyObject *string_replace ( PyStringObject *self , PyObject *args );
  42. static PyObject *string_startswith ( PyStringObject *self , PyObject *args );
  43. static PyObject *string_endswith ( PyStringObject *self , PyObject *args );
  44. static PyObject *string_expandtabs ( PyStringObject *self , PyObject *args );
  45. static PyObject *string_ljust ( PyStringObject *self , PyObject *args );
  46. static PyObject *string_rjust ( PyStringObject *self , PyObject *args );
  47. static PyObject *string_center ( PyStringObject *self , PyObject *args );
  48. // static PyObject *string_zfill ( PyStringObject *self , PyObject *args );
  49. static PyObject *string_isspace ( PyStringObject *self , PyObject *args );
  50. static PyObject *string_isdigit ( PyStringObject *self , PyObject *args );
  51. static PyObject *string_islower ( PyStringObject *self , PyObject *args );
  52. static PyObject *string_isupper ( PyStringObject *self , PyObject *args );
  53. static PyObject *string_istitle ( PyStringObject *self , PyObject *args );
  54. static PyObject *string_splitlines ( PyStringObject *self , PyObject *args );
  55. static PyObject *string_getattr ( PyStringObject *s , char *name );
  56.  
  57. static int mymemfind ( char *mem , int len , char *pat , int pat_len );
  58. static int mymemcnt ( char *mem , int len , char *pat , int pat_len );
  59. static char *mymemreplace ( char *str , int len , char *pat , int pat_len , char *sub , int sub_len , int count , int *out_len );
  60.